<template>
  <div class="data-display">
    <div style="overflow: hidden;background:rgba(0,0,40,0) ; position: relative; z-index: 2;">
      <div class="mainbox">
        <ul class="clearfix">
          <li>
            <div class="boxall" style="height:30vh;">
              <div class="alltitle">快捷方式</div>
              <div class="navboxall " />
            </div>
            <div class="boxall" style="height:35vh;">
              <div class="alltitle">标题样式</div>
              <div class="navboxall">

                <div class="sycm">
                  <ul class="clearfix">
                    <li>
                      <h2>1824</h2>
                      <span>当年销售额</span></li>
                    <li>
                      <h2>1920</h2>
                      <span>当月销售额</span></li>
                    <li>
                      <h2>19%</h2>
                      <span>利润额</span></li>

                    <li>
                      <h2>1824</h2>
                      <span>当年销售额</span></li>
                    <li>
                      <h2>1920</h2>
                      <span>当月销售额</span></li>
                    <li>
                      <h2>19%</h2>
                      <span>利润额</span></li>
                  </ul>
                </div>
              </div>
            </div>
          </li>
          <li>
            <div class="boxall" style="height:10vh">
              <div class="navboxall"><h1><a
                href="https://gitee.com/iGaoWei/big-data-view"
                style="color: white"
              >GUANER</a>
              </h1></div>
            </div>
            <div class="boxall" style="height:55vh">

              <div class="navboxall" style="overflow: hidden;height: 100%">
                <div id="echart3" style="width: 120%; height: 120%; position: relative; left: -10%; top: -11%;" />
              </div>
            </div>
          </li>
          <li>
            <div class="boxall" style="height:31vh; overflow: hidden">
              <div class="alltitle">标题样式</div>
              <div class="navboxall">
                <table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody>
                    <tr>
                      <th scope="col">排名</th>
                      <th scope="col">名称</th>
                      <th scope="col">金额</th>
                    </tr>
                    <tr>
                      <td><span>1</span></td>
                      <td>腾讯科技</td>
                      <td>114万<br></td>
                    </tr>
                    <tr>
                      <td><span>2</span></td>
                      <td>百度公司</td>
                      <td>923823万</td>
                    </tr>
                    <tr>
                      <td><span>3</span></td>
                      <td>新浪</td>
                      <td>1240253万</td>
                    </tr>
                    <tr>
                      <td><span>4</span></td>
                      <td>网易</td>
                      <td>1.2亿</td>
                    </tr>
                    <tr>
                      <td><span>5</span></td>
                      <td>雅虎</td>
                      <td>13423万</td>
                    </tr>
                    <tr>
                      <td><span>6</span></td>
                      <td>雅虎</td>
                      <td>13423万</td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
            <div class="boxall" style="height: 34vh; overflow: hidden">
              <div class="alltitle">标题样式</div>
              <div class="navboxall">
                <table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody>
                    <tr>
                      <th scope="col">排名</th>
                      <th scope="col">名称</th>
                      <th scope="col">金额</th>
                    </tr>
                    <tr>
                      <td><span>1</span></td>
                      <td>腾讯科技</td>
                      <td>114万<br></td>
                    </tr>
                    <tr>
                      <td><span>2</span></td>
                      <td>百度公司</td>
                      <td>923823万</td>
                    </tr>
                    <tr>
                      <td><span>3</span></td>
                      <td>新浪</td>
                      <td>1240253万</td>
                    </tr>
                    <tr>
                      <td><span>4</span></td>
                      <td>网易</td>
                      <td>1.2亿</td>
                    </tr>
                    <tr>
                      <td><span>5</span></td>
                      <td>雅虎</td>
                      <td>13423万</td>
                    </tr>
                    <tr>
                      <td><span>6</span></td>
                      <td>雅虎</td>
                      <td>13423万</td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>

          </li>
        </ul>
        <ul class="clearfix">
          <li style="width:60%">
            <div class="boxall" style="height:28vh;">
              <div class="alltitle">快捷导航</div>
              <div class="short-cut-box">
                <el-card v-for="(item) in cards" :key="item.index" class="shirt-cut-card">
                  <div slot="header">
                    <span style="color: white">{{ item.title }}</span>
                  </div>
                  <div v-for="link in item.links" :key="link.index" class="short-cut-item">

                    <router-link :to="link.route">{{ link.name }}</router-link>
                  </div>
                </el-card>
              </div>
            </div>
          </li>
          <li style="width: 40%">

            <div class="boxall" style="height:28vh">
              <div class="alltitle">标题样式</div>
              <div id="echart4" class="navboxall" />
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      cards: [
        {
          title: '采购管理',
          links: [
            { name: '采购订单', route: '/purchases/preorder' },
            { name: '采购入库', route: '/purchases/in' },
            { name: '采购退货', route: '/purchases/returns' }
          ]
        },
        {
          title: '销售管理',
          links: [
            { name: '销售订单', route: '/sales/presales' },
            { name: '销售出库', route: '/sales/orders' },
            { name: '销售退货', route: '/sales/returns' }
          ]
        },
        {
          title: '库存管理',
          links: [
            { name: '预盘点', route: '/stock/manage' },
            { name: '盘点单', route: '/stock/count' },
            { name: '其他', route: '' }
          ]
        },
        {
          title: '资料管理',
          links: [
            { name: '客户资料', route: '' },
            { name: '产品资料', route: '/BasicData/Product' },
            { name: '供应商资料', route: '' }
          ]
        },
        {
          title: '系统资料',
          links: [
            { name: '用户资料', route: '' },
            { name: '单位', route: '' },
            { name: '颜色', route: '' }
          ]
        },
        {
          title: '开发中',
          links: [
            { name: '开发中', route: '' },
            { name: '开发中', route: '' },
            { name: '开发中', route: '' }
          ]
        }
      ]
    }
  },
  async created() {
  },
  methods: {}
}
</script>
<style lang="scss" scoped>
.short-cut-item {
  padding: 5px;
}

.short-cut-box {
  width: 100%;
  display: flex;
  align-content: space-around;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.shirt-cut-card {
  margin-top: 10px;
  width: 15%;
  background: rgba(255, 255, 255, 0.05);

}

.data-display {
  margin: 0;
  padding: 0;
  font-family: microsoft yahei, serif;
  background: #003bc9;
  background: linear-gradient(to bottom right, #003bc9, #023ac2, #021341);
  height: 100%;
  width: 100%;
}

li {
  list-style-type: none;
}

table {
}

i {
  margin: 0;
  padding: 0;
  text-indent: 0;
}

img {
  border: none;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: #399bff;
}

a.active, a:focus {
  outline: none !important;
  text-decoration: none;
}

ol, ul, p, h1, h2, h3, h4, h5, h6 {
  padding: 0;
  margin: 0
}

a:hover {
  color: #06c;
  text-decoration: none !important
}

.clearfix:after, .clearfix:before {
  display: table;
  content: " "
}

.clearfix:after {
  clear: both
}

.pulll_left {
  float: left;
}

.pulll_right {
  float: right;
}

.canvas {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 1;
}

.loading {
  position: fixed;
  left: 0;
  top: 0;
  font-size: 16px;
  z-index: 100000000;
  width: 100%;
  height: 100%;
  background: #1a1a1c;
  text-align: center;
}

.loadbox {
  position: absolute;
  width: 160px;
  height: 150px;
  color: rgba(255, 255, 255, .6);
  left: 50%;
  top: 50%;
  margin-top: -100px;
  margin-left: -75px;
}

.loadbox img {
  margin: 10px auto;
  display: block;
  width: 40px;
}

h1 {
  color: #fff;
  font-size: 40px;
  line-height: 64px;
  text-align: center;
}

.weather {
  position: absolute;
  right: 20px;
  top: 0;
  line-height: 70px;
}

.weather span {
  color: rgba(255, 255, 255, .7) !important;
  font-size: 18px;
}

.mainbox {
  padding: 20px 20px 0px 20px;
}

.mainbox > ul {
  margin-left: -.4rem;
  margin-right: -.4rem;
}

.mainbox > ul > li {
  float: left;
  padding: 0 .4rem
}

.mainbox > ul > li {
  width: 24%
}

.mainbox > ul > li:nth-child(2) {
  width: 52%
}

.boxall {
  padding: 15px;
  background: rgba(0, 0, 0, .2);
  position: relative;
  margin-bottom: 15px;;
  z-index: 10;
}

.alltitle {
  font-size: 18px;
  color: #fff;
  position: relative;
  margin-bottom: 10px;
}

.alltitle:before {
  width: 90%;
  height: 1px;
  top: 12px;
  position: absolute;
  content: "";
  border-bottom: dashed #fff 1px;
  right: 0;
  opacity: .2;
}

.alltitle:after {
  width: 8px;
  height: 10px;
  top: 8px;
  position: absolute;
  content: "";
  border-radius: 20px;
  right: 0;
  background: #0c51f9;
}

.navboxall {
  height: calc(100% - 30px);
}

.num, .zhibiao {
  height: 100%;
  width: 50%;
}

.zb1, .zb2, .zb3 {
  float: left;
  width: 33.3333%;
  height: 100%;
}

#zb1, #zb2, #zb3 {
  height: calc(100% - 30px);
}

.zhibiao span {
  padding-top: 20px;
  display: block;
  text-align: center;
  color: #fff;
  font-size: 16px;
}

.num {
  padding-right: 20px;
}

.numbt {
  font-size: 24px;
  color: #fff;
  padding-top: 14px;
}

.numbt span {
  font-size: 18px;
  padding-left: 10px;
  color: #fff;
}

.numtxt {
  color: #fef000;
  font-size: 80px;
  font-family: arial;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 0;
  margin: 18px 0;
  font-weight: bold;
  letter-spacing: 2px;
}

.table1 th {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-size: 16px;
  color: rgba(255, 255, 255, .6);
  font-weight: normal;
  padding: 10px 0 10px 0;
}

.table1 td {
  font-size: 16px;
  color: rgba(255, 255, 255, .4);
  padding: 15px 0 0 0;
}

.table1 span {
  width: 24px;
  height: 24px;
  border-radius: 53px;
  display: block;
  background: #878787;
  color: #fff;
  line-height: 24px;
  text-align: center;
}

.table1 tr:nth-child(2) span {
  background: #ed405d
}

.table1 tr:nth-child(3) span {
  background: #f78c44
}

.table1 tr:nth-child(4) span {
  background: #49bcf7
}

/*Plugin CSS*/
.sycm ul {
}

.sycm li {
  text-align: center;
  padding: 10px 0;
  position: relative;
  float: left;
  width: 50%;
  padding: 20px 0;
}

.sycm ul li:nth-child(odd):before {
  position: absolute;
  content: "";
  height: 30%;
  width: 1px;
  background: rgba(255, 255, 255, .2);
  right: 0;
  top: 30%;
}

.sycm li h2 {
  font-size: 24px;
  color: #c5ccff;
}

.sycm li span {
  font-size: 18px;
  color: #fff;
  opacity: .5;
}

.sycm p {
  border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .6);
  text-align: center;
  margin: 10px;
  border-radius: 5px;
  padding: 8px;
  position: relative;
}

.sycm p:before {
  content: "";
  position: absolute;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, .3);
  bottom: -8px;
  left: 49%
}
</style>
